#include "xviewer.h"
#include <QtWidgets/QApplication>
#include <QDebug>
#include <QDir>
#include <QTextCodec>
#include "xcamera_config.h"
#include "xcamera_record.h"
#include "xplayvideo.h"
int main(int argc, char *argv[])
{
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("GBK"));
    const char *save_path = "./video/";
    QDir dir;
    dir.mkpath(save_path);
    QApplication a(argc, argv);
    XViewer w;
    w.show();
    auto re = a.exec();
    return re;
}
